//
//  WDNetworkRequestModel.h
//  Pods
//
//  Created by Alean on 2022/12/1.
//

#import <Foundation/Foundation.h>
#import "WDNetworkBaseObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface WDNetworkRequestModel : NSObject

@property (nonatomic, strong) NSURLSessionTask *task;

@property (nonatomic, strong) NSURLResponse *resonse;

@property (nonatomic, copy) NSString *requestUrl;

// 单独生成一个请求
@property (nonatomic, assign) BOOL ignoreBaseUrl;

// 方法请求类型，get post put head
@property (nonatomic, copy) NSString *method;

@property (nonatomic, strong) id responseObject;

@property (nonatomic, copy) NSDictionary *parameters;

@property (nonatomic, copy) SuccessBlock successBlock;

@property (nonatomic, copy) FailureBlock failureBlock;

#pragma mark - download
@property (nonatomic, copy) NSString *downloadFilePath;

@property (nonatomic, assign) BOOL backgroundSupport;

@property (nonatomic, copy) DownloadProgressBlock progressBlock;

@property (nonatomic, copy) DownloadSuccessBlock downloadSuccessBlock;

@property (nonatomic, copy) DownloadFailureBlock downloadFailureBlock;


@end

NS_ASSUME_NONNULL_END
